using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Zoo.Controller;
using Zoo;
using Zoo.Domain;

public partial class ProfileDetail : PageBase, Zoo.View.IProfileDetailView
{
    private ProfileDetailController controller;

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        IZooModel model = new ZooModel();
        controller = new ProfileDetailController(this, model);
        
        
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        
        controller.Initialize();
        Page.DataBind();
    }


    #region IProfileDetailView Members

    private IdentityCard _userIdentityCard;
    public Zoo.Domain.IdentityCard UserIdentity
    {
        get
        {
            return _userIdentityCard;
        }
        set
        {
            _userIdentityCard = value;
        }
    }

    public int UserID
    {
        get
        {
            int userID;
            if (int.TryParse(Request.QueryString["id"], out userID))
                return userID;

            return 0;
        }
    }

    #endregion
}
